FUNCTION CMGetIndProfileElementInfo(prof: CMProfileRef; index: LONGINT; VAR tag: OSType; VAR elementSize: LONGINT; VAR refs: BOOLEAN): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0014, $0021, $ABEE;
{$ENDC}
FUNCTION CMGetIndProfileElement(prof: CMProfileRef; index: LONGINT; VAR elementSize: LONGINT; elementData: UNIV Ptr): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $0022, $ABEE;
{$ENDC}
FUNCTION CMRemoveProfileElement(prof: CMProfileRef; tag: OSType): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $0024, $ABEE;
{$ENDC}
FUNCTION CMGetScriptProfileDescription(prof: CMProfileRef; VAR name: Str255; VAR code: ScriptCode): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $003E, $ABEE;
{$ENDC}
{ Low-level matching functions }
FUNCTION NCWNewColorWorld(VAR cw: CMWorldRef; src: CMProfileRef; dst: CMProfileRef): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0014, $ABEE;
{$ENDC}
FUNCTION CWConcatColorWorld(VAR cw: CMWorldRef; VAR profileSet: CMConcatProfileSet): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $0015, $ABEE;
{$ENDC}
FUNCTION CWNewLinkProfile(VAR prof: CMProfileRef; {CONST}VAR targetLocation: CMProfileLocation; VAR profileSet: CMConcatProfileSet): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0033, $ABEE;
{$ENDC}
PROCEDURE CWDisposeColorWorld(cw: CMWorldRef);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0001, $ABEE;
{$ENDC}
FUNCTION CWMatchColors(cw: CMWorldRef; VAR myColors: CMColor; count: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0002, $ABEE;
{$ENDC}
FUNCTION CWCheckColors(cw: CMWorldRef; VAR myColors: CMColor; count: LONGINT; VAR result: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $0003, $ABEE;
{$ENDC}
{ Bitmap matching }
FUNCTION CWMatchBitmap(cw: CMWorldRef; VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR matchedBitmap: CMBitmap): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $002C, $ABEE;
{$ENDC}
FUNCTION CWCheckBitmap(cw: CMWorldRef; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitmap: CMBitmap): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0014, $002D, $ABEE;
{$ENDC}
{ Quickdraw-specific matching }
FUNCTION CWMatchPixMap(cw: CMWorldRef; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $0004, $ABEE;
{$ENDC}
FUNCTION CWCheckPixMap(cw: CMWorldRef; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitMap: BitMap): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0014, $0007, $ABEE;
{$ENDC}
FUNCTION NCMBeginMatching(src: CMProfileRef; dst: CMProfileRef; VAR myRef: CMMatchRef): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0016, $ABEE;
{$ENDC}
PROCEDURE CMEndMatching(myRef: CMMatchRef);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000B, $ABEE;
{$ENDC}
PROCEDURE NCMDrawMatchedPicture(myPicture: PicHandle; dst: CMProfileRef; VAR myRect: Rect);
FUNCTION CMSearchGetIndProfile(search: CMProfileSearchRef; index: LONGINT; VAR prof: CMProfileRef): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $002A, $ABEE;
{$ENDC}
FUNCTION CMSearchGetIndProfileFileSpec(search: CMProfileSearchRef; index: LONGINT; VAR profileFile: FSSpec): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $002B, $ABEE;
{$ENDC}
{ Utilities }
FUNCTION CMGetColorSyncFolderSpec(vRefNum: INTEGER; createFolder: BOOLEAN; VAR foundVRefNum: INTEGER; VAR foundDirID: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0011, $ABEE;
{$ENDC}
FUNCTION CMGetCWInfo(cw: CMWorldRef; VAR info: CMCWInfoRecord): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $001A, $ABEE;
{$ENDC}
{ PS-related }
FUNCTION CMGetPS2ColorSpace(srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr; VAR preferredCMMnotfound: BOOLEAN): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0014, $002E, $ABEE;
{$ENDC}
FUNCTION CMGetPS2ColorRenderingIntent(srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr; VAR preferredCMMnotfound: BOOLEAN): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0014, $002F, $ABEE;
{$ENDC}
FUNCTION CMGetPS2ColorRendering(srcProf: CMProfileRef; dstProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr; VAR preferredCMMnotfound: BOOLEAN): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0018, $0030, $ABEE;
{$ENDC}
FUNCTION CMGetPS2ColorRenderingVMSize(srcProf: CMProfileRef; dstProf: CMProfileRef; VAR vmSize: LONGINT; VAR preferredCMMnotfound: BOOLEAN): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $003D, $ABEE;
{$ENDC}
{ ColorSync 1.0 functions which have parallel 2.0 counterparts }
FUNCTION CWNewColorWorld(VAR cw: CMWorldRef; src: CMProfileHandle; dst: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0000, $ABEE;
{$ENDC}
FUNCTION ConcatenateProfiles(thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $000C, $ABEE;
{$ENDC}
FUNCTION CMBeginMatching(src: CMProfileHandle; dst: CMProfileHandle; VAR myRef: CMMatchRef): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $000A, $ABEE;
{$ENDC}
PROCEDURE CMDrawMatchedPicture(myPicture: PicHandle; dst: CMProfileHandle; VAR myRect: Rect);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0009, $ABEE;
{$ENDC}
FUNCTION CMUseProfileComment(profile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0008, $ABEE;
{$ENDC}
PROCEDURE CMGetProfileName(myProfile: CMProfileHandle; VAR IStringResult: CMIString);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $000E, $ABEE;
{$ENDC}
FUNCTION CMGetProfileAdditionalDataOffset(myProfile: CMProfileHandle): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000F, $ABEE;
{$ENDC}
{ ProfileResponder functions }
FUNCTION GetProfile(deviceType: OSType; refNum: LONGINT; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $0005, $ABEE;
{$ENDC}
FUNCTION SetProfile(deviceType: OSType; refNum: LONGINT; newProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0006, $ABEE;
{$ENDC}
FUNCTION SetProfileDescription(deviceType: OSType; refNum: LONGINT; deviceData: LONGINT; hProfile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0010, $0010, $ABEE;
{$ENDC}
FUNCTION GetIndexedProfile(deviceType: OSType; refNum: LONGINT; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0014, $0012, $ABEE;
{$ENDC}
FUNCTION DeleteDeviceProfile(deviceType: OSType; refNum: LONGINT; deleteMe: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0013, $ABEE;
{$ENDC}
{$IFC OLDROUTINENAMES }
{ constants }
CONST
kMatchCMMType = $00000001;
kMatchApplProfileVersion = $00000002;
kMatchDataType = $00000004;
kMatchDeviceType = $00000008;
kMatchDeviceManufacturer = $00000010;
kMatchDeviceModel = $00000020;
kMatchDeviceAttributes = $00000040;
kMatchFlags = $00000080;
kMatchOptions = $00000100;
kMatchWhite = $00000200;
kMatchBlack = $00000400;
{ types }
TYPE
CMYKColor = CMCMYKColor;
CMYKColorPtr = ^CMYKColor;
CWorld = CMWorldRef;
CMGamutResult = ^LONGINT;
{ functions }
PROCEDURE EndMatching(myRef: CMMatchRef);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000B, $ABEE;
{$ENDC}
PROCEDURE EnableMatching(enableIt: BOOLEAN);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0002, $000D, $ABEE;
{$ENDC}
FUNCTION GetColorSyncFolderSpec(vRefNum: INTEGER; createFolder: BOOLEAN; VAR foundVRefNum: INTEGER; VAR foundDirID: LONGINT): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0011, $ABEE;
{$ENDC}
FUNCTION BeginMatching(src: CMProfileHandle; dst: CMProfileHandle; VAR myRef: CMMatchRef): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $000A, $ABEE;
{$ENDC}
PROCEDURE DrawMatchedPicture(myPicture: PicHandle; dst: CMProfileHandle; VAR myRect: Rect);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000C, $0009, $ABEE;
{$ENDC}
FUNCTION UseProfile(profile: CMProfileHandle): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0008, $ABEE;
{$ENDC}
PROCEDURE GetProfileName(myProfile: CMProfileHandle; VAR IStringResult: CMIString);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $000E, $ABEE;
{$ENDC}
FUNCTION GetProfileAdditionalDataOffset(myProfile: CMProfileHandle): LONGINT;